package com.osdp.sc.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.osdp.common.constant.CommonConstant;
import com.osdp.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @Author
 * @since
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sc_role")
public class ScRole extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 角色编码
     */
    private String roleCode;
    /**
     * 是否有效
     */
    private String validation;
    /**
     * 描述
     */
    private String description;

    /**
     * 租户ID
     * 可以理解成初始租户ID，默认租户ID
     */
    private String tenantId;
    /**
     * "删除状态（0，正常，1已删除）"
     */
//    @TableLogic
//    private Integer delFlag;
    /**
     * 判断是否删除
     *
     * @return
     */
//    public boolean deleted() {
//        return delFlag == CommonConstant.FLAG_ONE_1;
//    }

}
